import request from "@/utils/request"
// 待确认审核状态统计    https://documenter.getpostman.com/view/3422008/2sA2xb6aoY#568392fa-47d0-41e7-b421-c0e213ad7768
export function reviewStatusStatistics(data) {
  return request({
    url: `/v1/plan/spa/operator-review-status-statistics`,
    method: "post",
    data,
  })
}
// 待确认备货计划明细列表    https://documenter.getpostman.com/view/3422008/2sA2xb6aoY#073466ad-02ec-4f33-890e-1ab156733971
export function unconfirmedList(data) {
  return request({
    url: `/v1/plan/spa/unconfirmed-list`,
    method: "post",
    data,
  })
}
// 待确认备货计划明细列表 批量确认    https://documenter.getpostman.com/view/3422008/2sA2xb6aoY#4e452c85-be62-40e1-97cb-c541005853ce
export function operatorReview(data) {
  return request({
    url: `/v1/plan/spa/operator-review`,
    method: "post",
    data,
  })
}

// 待确认备货计划明细列表 修改待确认明细    https://documenter.getpostman.com/view/3422008/2sA2xb6aoY#72d9decc-23eb-4037-85ee-fb9b96c879bb
export function updateUnconfirmedSpa(data) {
  return request({
    url: `/v1/plan/spa/update-unconfirmed-spa`,
    method: "post",
    data,
  })
}
// 待确认备货计划明细列表 备货分析创建备库需求单    http://10.20.9.32:40001/project/65/interface/api/23097
export function intelligentCreate(data) {
  return request({
    baseURL: window.APP_GETEWAY.pms,
    url: `/v1/purchase-demand/purchase-demand/intelligent-create`,
    method: "post",
    data,
  })
}

// 待确认备货计划明细列表 复制明细    https://documenter.getpostman.com/view/3422008/2sA2xb6aoY#4fda733f-641f-4885-82a3-99bdc16ff495
export function spaCopy(data) {
  return request({
    url: `/v1/plan/spa/copy`,
    method: "post",
    data,
  })
}

// 待确认备货计划明细列表 记录推送pms时间
export const recordPushPms = (data) =>
  request({
    url: "/v1/plan/spa/push-pms",
    method: "post",
    data,
  })
